package org.alis.smallcc.designpatterns.behavior.state;

import org.alis.smallcc.designpatterns.behavior.memento.Originator;
import org.apache.commons.lang3.StringUtils;

public class ForwardState implements State{

	@Override
	public String currentState() {
		return "快进状态";
	}

	@Override
	public boolean canChanage(Originator context) {
		if(StringUtils.equals("播放状态", context.getState())) {
			return true;
		}
		System.out.println("快进状态只能在播放状态中进行");
		return false;
	}

}
